<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ShopNC后台管理系统</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<smart>include file ='sys_head_config.html'</smart>
<script language="javascript">
	function getAll(is_true){
		 var f=document.list.elements.length;
		 	if(is_true==1){
		 		for(i=0;i<f;i++){
		 			if(document.list.elements[i].type=="checkbox"){
		 				document.list.elements[i].checked=true;
		 			}
		 		}
		 	}
		 	else{
		 		for(i=0;i<f;i++){
		 			if(document.list.elements[i].type=="checkbox"){
		 				document.list.elements[i].checked=false;
		 			}
		 		}
		 	}
	}
</script>
</head>
<body>
<div id="ceng"> <smart>include file ='sys_header.html'</smart>
  <div id="main" style="height:auto">
    <div id="welcome">
      <p>欢迎您进入ShopNC后台管理系统！</p>
　　　　
通过后台管理系统，您可以轻松管理商铺相关、查询信息,ShopNC为您打造方便、快捷的后台管理系统！       </div>
    <em>后台管理系统</em>
    <div id="main-left">
      <div id="product-help" style="background-image:none; height:auto; margin-top:0px; padding:20px">
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style="margin-top:10px">
  	<form action="sqlback.manage.php?action=backup" method="POST" name="list">
	<tr>
		<td colspan="5">分卷备份-文件长度限制(kb)：<input name="vol_size" type="text" value="2048" size="10"/><input type="submit" value="备份" /></td>
	</tr>
    <tr>
      <th height="30" align="center" valign="middle" bgcolor="#DBE6DE"></th>
      <th height="30" align="center" valign="middle" bgcolor="#DBE6DE">表名</th>
      <th height="30" align="center" valign="middle" bgcolor="#DBE6DE">表类型</th>
      <th height="30" align="center" valign="middle" bgcolor="#DBE6DE">记录数</th>
      <th height="30" align="center" valign="middle" bgcolor="#DBE6DE">操作</th>
    </tr><tbody>
    <smart> section name=i loop=$sql_array </smart>
    <tr>
      <td align="center" valign="middle" bgcolor="#FFFFFF"><input type="checkbox" name="sql_name[]" value="<smart> $sql_array[i].Name </smart>" checked/></td>
      <td align="center" valign="middle" bgcolor="#FFFFFF"><smart> $sql_array[i].Name </smart></td>
      <td align="center" valign="middle" bgcolor="#FFFFFF"><smart> $sql_array[i].Engine </smart></td>
      <td align="center" valign="middle" bgcolor="#FFFFFF"><smart> $sql_array[i].Rows </smart></td>
      <td align="center" valign="middle" bgcolor="#FFFFFF"><a href="sqlback.manage.php?action=info&name=<smart> $sql_array[i].Name </smart>">结构</a></td>
    </tr>
    <smart> /section </smart>
	<input type="button" value="全选" onclick="getAll(1)"/>
    <input type="button" value="取消" onclick="getAll(0)"/>
	<input type="button" value="优化数据库" onclick="location.href='sqlback.manage.php?action=optimize'"/>
	</tbody>
</form>
  </table>
      </div>
    </div>
    <smart>include file ='sys_right_help.html'</smart>
    <div style="clear:both"></div>
  </div>
 <smart>include file ='sys_footer.html'</smart> 
</div>
</body>
</html>
